
<!doctype html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>{{session("szyLy.title")}}</title>
  <meta name="keywords" content={{session("szyLy.keywords")}} />
    <meta name="description" content={{session("szyLy.description")}} />
  <link rel="shortcut icon" href="/style/home/img/1.png">
  <link rel="stylesheet" href="/style/home/css/lenovo.css">
  <script src="/style/home/js/jquery.js"></script>
  <script src="/style/home/js/index.js"></script>
  <style type="text/css">
       .noresut_tipinfo {
          padding: 40px 0px 40px 25px;
          background-color: #f2f2f2;
          color: #333333;
          font-size: 16px;
}

  </style>
</head>
<body>
  <!-- 头 -->
   @include("home.public.header")
  <!-- 顶部 -->
 

<!-- 中 -->
<!-- <div class="middle">
   <!-- 搜索 -->
 <form method="get" action="/search">
  <div class="container search">
     <div class="search-left">
       <a href="/"><img src={{session("szyLy.logo")}} alt=""></a>
     </div>

     <div class="search-right">
       <input type="text" placeholder="miix5" name="search" value="{{$request['search'] or ''}}">
        <div class="fang">
          <input type="submit" id="search" class="da" value="搜索">
        </div>       
     </div>
</form>

  
  <!-- 菜单 -->
  <div class="container menus">
    
    <div class="menus-dao">
      <ul>
      
        <li class="bk">
          <a >顶级分类</a>
          <ul class="bk-bao">
            @foreach($types as $one)
           <li> <a href="/types/{{$one['id']}}">{{$one['typename']}}</a></li>
            @endforeach
          </ul>
        </li>
     </ul>

     </div>

  </div>

      <div class="clear"></div>


  <!-- 明星单品 -->
  @if(!empty($goods))
  <div class="container star">
    <div class="star-1">
      <div class="start-xi">
        <ul>
        @foreach($goods as $g)
          <li style="width: 198px; height: 297px;">
            <a target="_blank" href="/goods/{{$g['id']}}"> 
              <img src="{{$g['img']}}" title="{{$g['goodsname']}}" style="width:180px;height:180px;">
            </a>
            <p class="star_name">
              <a target="_blank" href="/goods/{{$g['id']}}">{{$g['goodsname']}}</a>
            </p>
            <p class="star_ad">
              <a target="_blank" href="/goods/{{$g['id']}}">{{$g['title']}}</a>
            </p>
            <p class="star_price"><a target="_blank" href="/goods/{{$g['id']}}">{{number_format($g['price'])}}</a></p>
          </li> 
        @endforeach
      <div class='clear'></div>
    </ul>
  </div>
 </div>
</div>
@else
<div class="noresut_tipinfo">抱歉！没有找到与<span style="color:red;">{{$_GET['search']}}</span>相关的商品，您可以看看联想商城正在热卖的商品：
</div>
  <div class="container star">
    <div class="star-1">
      <div class="start-xi">
        <ul>
        @foreach($hotgoods as $hot)
          <li style="width: 198px; height: 297px;">
            <a target="_blank" href="/goods/{{$hot['id']}}"> 
              <img src="{{$hot['img']}}" title="{{$hot['goodsname']}}" style="width:180px;height:180px;">
            </a>
            <p class="star_name">
              <a target="_blank" href="/goods/{{$hot['id']}}">{{$hot['goodsname']}}</a>
            </p>
            <p class="star_ad">
              <a target="_blank" href="/goods/{{$hot['id']}}">{{$hot['title']}}</a>
            </p>
            <p class="star_price"><a target="_blank" href="/goods/{{$hot['id']}}">{{number_format($hot['price'])}}</a></p>
          </li> 
        @endforeach
      <div class='clear'></div>
    </ul>
  </div>
 </div>
</div>
@endif

<div style="margin-top:20px;"></div>
<!-- 页脚-->
  @include("home.public.footer");
</body>

</html>

